package com.hhdys.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hhdys.dao.AccountMapper;

@Service
public class AccountServiceImpl implements AccountService {
	@Autowired
	private AccountMapper dao;

	@Override
	public int getListSize() {
		return dao.selectByExample(null).size();
	}

	public AccountMapper getDao() {
		return dao;
	}

	public void setDao(AccountMapper dao) {
		this.dao = dao;
	}

	@Override
	public String getAccountName(int id) {
		return dao.getAccountName(id);
	}

	@Override
	public String getUserName(int id) {
		return dao.getUserName(id);
	}

}
